/**
 * 
 */
package com.webkaifa.telnetserver;

/**
 * @author along
 *
 */
public class TelnetServerApp {
	public TelnetServerApp(String address, int port)
	{
		m_oSocketTask=TelnetServerSocketThread.getInstance(address, port);
	}
	private TelnetServerMsgTask m_oMsgTask=TelnetServerMsgTask.getInstance();
	private TelnetServerSocketThread m_oSocketTask=null;
	public TelnetServerMsgTask getM_oMsgTask() {
		return m_oMsgTask;
	}
	public TelnetServerSocketThread getM_oSocketTask() {
		return m_oSocketTask;
	}
	private static  TelnetServerApp instance=null;
	public static TelnetServerApp getInstance(String address, int port)
	{
		if(instance==null)
			instance=new TelnetServerApp(address,port);
		return instance;
	}
}
